<template>
	<view>
		<view class="topbak" :style="{ height: sH +10+ 'px' }">

		</view>
		<navigator hover-class="none" class="nav-box" open-type="reLaunch" url="/pages/my/my">
			<u-icon name="arrow-left" color="#000000" label-color="#000000" :size="20" :label-size="18"
				label="设置"></u-icon>
		</navigator>
		<view class="content">
			<view @click="$msg.Navigoto('/pages_t/Settings/skill')" class="item flex justify-between items-center">
				<view class="ltet">
					我的技能
				</view>
				<view class="right">
					<image src="@/static/right.png" mode="widthFix" style="width: 32rpx;"></image>
				</view>
			</view>
			<view @click="$msg.Navigoto('/pages_t/Settings/bank/bank')" class="item flex justify-between items-center">
				<view class="ltet">
					我的银行卡
				</view>
				<view class="right">
					<image src="@/static/right.png" mode="widthFix" style="width: 32rpx;"></image>
				</view>
			</view>
			<view @click="passsz"  class="item flex justify-between items-center">
				<view class="ltet">
					登录密码
				</view>
				<view class="right flex items-center">
					
					<view class="sz" v-if="zt">
						已设置
					</view>
					<view class="wsz" v-else>
						未设置
					</view>
					<image src="@/static/right.png" mode="widthFix" style="width: 32rpx;"></image>
				</view>
			</view>
			<!-- <view class="item flex justify-between items-center"  @click="$msg.Navigoto('/pages_t/Settings/resword')">
				<view class="ltet">
					支付密码
				</view>
				<view class="right flex items-center">
					<view class="sz">
						已设置
					</view>
					<image src="@/static/right.png" mode="widthFix" style="width: 32rpx;"></image>
				</view>
			</view> -->
			<view  @click="$msg.Navigoto('/pages_t/Settings/myinfo')"  class="item flex justify-between items-center">
				<view class="ltet">
					我的信息
				</view>
				<view class="right">
					<image src="@/static/right.png" mode="widthFix" style="width: 32rpx;"></image>
				</view>
			</view>
			
		</view>
		<view class="btn flex-center" @click="quit">
			退出登录
		</view>
		<image src="@/static/logo.png" mode="widthFix" class="botbg">
		</image>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				sH: '',
				zt:''
			};
		},
		onShow() {
			this.$api.rider_index({
				
			}).then(res => {
				this.zt=res.data.login_passwords
				console.log(this.info, 'res');
			}).catch(err => {
				console.log(err, 'err');
			});
		},
		onLoad(o) {
			this.getWinTop().then(res => {
				this.sH = res.statusBar;
			});
			
			
		},
		methods:{
			passsz(){
				if(this.zt){
					this.$msg.Navigoto('/pages_t/Settings/loginword')
				}else{
					this.$msg.Navigoto('/pages_t/Settings/resword?type=sz')
				}
			},
			quit(){
				uni.clearStorage()
				uni.exitMiniProgram(	{
					success: () => {
						uni.showToast({
							icon:'success',
							title:'退出成功'
						})
						
						console.log('退出小程序成功');
					}
				});
			},
		}
	}
</script>

<style lang="scss">
	.content {
		position: absolute;
		top: 200rpx;
		left: 40rpx;
		padding-bottom: 115rpx;
		.item{
			width: 686rpx;
			height: 108rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(51,119,255,0.05);
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			padding: 0 24rpx;
			margin: 24rpx 0;
			.left{
				font-size: 28rpx;
				color: #333A47;
			}
			.right{
				.sz{
					margin-right: 8rpx;
					font-size: 28rpx;
					color: #999CA3;
				}
				.wsz{
					margin-right: 8rpx;
					font-size: 28rpx;
					color: #CCCED1;
				}
			}
		}
	}
	.btn{
		width: 686rpx;
		height: 100rpx;
		background: #3377FF;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(51,119,255,0.05);
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		font-size: 32rpx;
		color: #FFFFFF;
		    position: absolute;
		    bottom: 150rpx;
		    left: 32rpx;
	}
	.botbg{
		position: absolute;bottom: 50rpx; width:750rpx;
	}
</style>